#ifndef PARSERSHARETOOL_H
#define PARSERSHARETOOL_H
#include<QString>
#include<QMutex>
#include<QList>

class ParserShareTool
{

    static QMutex valuelistmutex;
    static QMutex stringlistmutex;
    static QMutex valuemutex;
    static QList<QString> m_stringlist;
    static QList<double> m_valuelist;
   static int m_icurnum;
#define PARSERSHARENUM 30
public:

    ParserShareTool();
    ~ParserShareTool(){}
    void setnum(int inum);
    double getnumvalue(int inum);
    void setvalue(double ivalue);
    void setnumvalue(double inum,double ivalue);
    void setstring(const char * pchar);
    void addstring(const char * pchar);
    double getvalue();
    void reset();
    void setresult(void * pshape);
    void addresult(void * pshape);
    QString getstring(int inum);
};

#endif // PARSERSHARETOOL_H
